<?php
class helper_language extends system_view_helper_abstract {
	
	protected $_name = null;
	/**
	 * @return helper_language
	 */
	public function language($name = null) {
		$this->_name = $name;
		return $this;
	}
	
	public function __toString() {
		return system_nav_language::getInstance()->get($this->_name);
	}
	
	public function getName() {
		return system_nav_language::getInstance()->getName();
	}
	
}
